package org.example.rental.support.ids.policy;


import org.apache.commons.lang3.RandomStringUtils;
import org.example.rental.support.ids.IIdGenerator;
import org.springframework.stereotype.Component;

//随机算法
@Component
public class RandomNumeric implements IIdGenerator {
    public long nextId() {
        return Long.parseLong(RandomStringUtils.randomNumeric(11));
    }
}
